<template>
  <!-- Hospital doctors -->
  <div class="recommended">
    <div style="border-bottom: 1px solid #CBD1D7;">
      <div class="title">Hospital doctors</div>
    </div>
    <div class="hospital_list">
      <div class="hospital_card" v-for="(item,index) in doctorList" :key="index">
        <img :src="item.doctorImgPath" class="hospital_img">
        <div class="hospital_info">
          <div class="doctor_name">{{ item.doctorEnglishName }}</div>
          <div class="doctor_title">{{ item.doctorJapaneseName }}</div>
          <div class="doctor_info doctor_title">{{ item.doctorIntroduce }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['doctorList']
}
</script>

<style lang="scss" scoped>
.recommended{
  width: 824px;
  .title{
    font-weight: bold;
    font-size: 18px;
    color: #0041A3;
    line-height: 62px;
    border-bottom: 4px solid #0041A3;
    width: fit-content;
  }
  .hospital_list{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 24px;
    .hospital_card{
      width: 404px;
      background: #F5F8FD;
      border-radius: 8px;
      display: flex;
      justify-content: flex-start;
      padding: 16px;
      box-sizing: border-box;
      margin-bottom: 16px;
      .hospital_img{
        width: 180px;
        height: 150px;
      }
      .hospital_info{
        margin-left: 16px;
        .doctor_name{
          font-weight: bold;
          font-size: 18px;
          color: #2E343E;
          line-height: 18px;
          margin-top: 22px;
        }
        .doctor_title{
          font-weight: 400;
          font-size: 16px;
          color: #616469;
          line-height: 16px;
          margin-top: 8px;
        }
        .doctor_info{
          margin-top: 16px;
          line-height: 24px;
          // 超出....
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
      }
    }
  }
}
</style>